package org.apache.spark.examples.sql.model;


import org.apache.spark.api.java.function.Function;

/**
 * Created by admin on 2019/3/21.
 */
public class GetLength implements Function<String,Integer> {
    @Override
    public Integer call(String s) throws Exception {
        return s.length();
    }
}
